package com.yj.suncity.user.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONObject;

public class ShopCateListBean {
	   private String success;//": "1",
	   private String msg;//": "成功",
	   private List<ShopCateBean> data;//": [
	public ShopCateListBean(JSONObject json) {
		this.success = json.optString("success");
		this.msg = json.optString("msg");
		this.data = new ArrayList<ShopCateBean>();
		JSONArray array=json.optJSONArray("data");
		if (array!=null) {
			for (int i = 0; i < array.length(); i++) {
				JSONObject item = array.optJSONObject(i);
				if (item!=null) {
					this.data.add(new ShopCateBean(item));
				}
			}
		}
	}
	public String getSuccess() {
		return success;
	}
	public String getMsg() {
		return msg;
	}
	public List<ShopCateBean> getData() {
		return data;
	}

}
